import java.util.ArrayList;

public class Test {
    public static void main(String[] args) {
        Sale sale = new Discount(new EnoughtReduct(new NoDiscount(),100,25), 0.8);
        ArrayList<SaleItem> items = new ArrayList<>();
        SaleItem s1 = new SaleItem(10,100); //1000
        SaleItem s2 = new SaleItem(5,25);   //125

        items.addFirst(s1);
        items.addFirst(s2);
        sale.set_items(items);

        System.out.println(sale.totalCost());

    }
}
